<!--
	URL/change/:title/templates
	app/views/templates/show.html.erb 
	The change resume-template view - displays the options for changing the user's template 
	controller: templates, action: change 
-->

<link rel="stylesheet" type="text/css" href="/stylesheets/resume_common.css" />
<link rel="stylesheet" type="text/css" href="/stylesheets/templates/change.css" />	

<div class="heading">
	<h3> Templates </h3>
	<div class="links">	</div>	
</div>

<table id="templates_table">
	<% for template in @all_templates %>
		<tr id="<%=h template.id %>">
			<td class="column1 thumbnail">
				<img src="<%=h template.thumbnail_url %>" alt="thumbnail">
			</td>
			<td class="column2">
				<div class="name">	<%=h template.name %>		</div>
				<div class="author">by <%=h template.author %>	</div>
				<div class="desc">	<%=h template.desc %>		</div>
			</td>
			<td class="column3">
				<span class="preview_link"><%= link_to 'preview', '/preview/'+@resume.title+'/'+template.name %></span>
			</td>
			<td class="column4">
				<span class="set_button">Set</span>
			</td>
		</tr>
	<% end %>
</table>

<script type="text/javascript" src="/javascripts/jquery-1.3.2.js"></script>
<script type="text/javascript" src="/javascripts/resume_common.js"></script>
<script type="text/javascript" src="/javascripts/templates/change.js"></script>